Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1339,14 +1339,18 @@ void SpecialAbilityUpdate::triggerAbilityEffect()
return;
}

//Steal a thousand cash from the other team!
//Steal cash from the other team!
Money *targetMoney = target->getControllingPlayer()->getMoney();
Money *objectMoney = object->getControllingPlayer()->getMoney();
if( targetMoney && objectMoney )
{
UnsignedInt cash = targetMoney->countMoney();
#if RETAIL_COMPATIBLE_CRC
UnsignedInt desiredAmount = 1000;
//Check to see if they have 1000 cash, otherwise, take the remainder!
#else
UnsignedInt desiredAmount = data->m_effectValue;
#endif
//Check to see if they have the cash, otherwise, take the remainder!
cash = min( desiredAmount, cash );
if( cash > 0 )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1485,14 +1485,18 @@ void SpecialAbilityUpdate::triggerAbilityEffect()
return;
}

//Steal a thousand cash from the other team!
//Steal cash from the other team!
Money *targetMoney = target->getControllingPlayer()->getMoney();
Money *objectMoney = object->getControllingPlayer()->getMoney();
if( targetMoney && objectMoney )
{
UnsignedInt cash = targetMoney->countMoney();
#if RETAIL_COMPATIBLE_CRC
UnsignedInt desiredAmount = 1000;
//Check to see if they have 1000 cash, otherwise, take the remainder!
#else
UnsignedInt desiredAmount = data->m_effectValue;
#endif
//Check to see if they have the cash, otherwise, take the remainder!
cash = min( desiredAmount, cash );
if( cash > 0 )
{
Expand Down
Loading