zethfoxster bc2d8dab31 corrected my logic for emerge, originally I thought the cost was the same as the original cost, while coding i noticed it can have a completely different cost than the real manacost.
moved the extra cost check for "offerings" to a location before canafford in alternative reacttoclick, the reason for this is that the 2 offering cost we have handle the can afford calls, and even cast the card in the dopay. not placing this before it causes the card to not react to click if there is a different manacost attached to the emerge/kill 
test codes below.
mana={g}{g}{g}
other={emerge}(r}{4} name(emerge)

mana={6}
other={k(giant|mybattlefield)}

fixed memleaks in killoffering code.

note to devs, remember to make diff costs a variable that you can safe_delete, it creates a manacost object that will become a leak otherwise.
do not use it directly as a function.
source->controller()->getManaPool()->canAfford(source->getManaCost()->Diff(target->getManaCost()))
this will leave a memleak every single time ai checks this cost, or a player accesses the cost even if you cant pay it.
2016-07-22 19:10:06 -04:00
2013-10-28 15:29:51 -07:00
2016-07-14 01:13:43 +08:00
2016-05-27 10:59:31 +08:00
2016-07-08 15:47:01 +08:00
2014-12-29 15:04:00 +01:00

#Wagic the Homebrew

Build Status Build status Coverage Status

Description

Wagic, the Homebrew, is a C++ game engine that allows to play card games against an AI on

  • Android (phones and tablets)
  • iOS (iPhone/iPad)
  • Sony PSP
  • Windows desktops
  • MacOS
  • Linux and derivated like Maemo or Meego

It is highly customizable and allows the player to tweak the rules / create their own cards, their own themes, etc...

Info, downloads, discussions and more at http://wololo.net/forum/index.php

-alt text

Sample round play-through video

IMAGE ALT TEXT HERE

Languages
C++ 55.1%
C 38.6%
Objective-C 3.4%
Java 1.5%
HTML 0.8%
Other 0.4%